import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 获取数据
  getImgData: {
    url: '/admin/yard/project',
    method: 'post'
  },
  getProvinceData: {
    url: '/admin/area/getplace',
    method: 'post'
  },
  getJumpData: {
    url: '/admin/base/codes/data',
    method: 'get'
  },
  // 获取模型列表数据
  getProjectData: {
    url: '/api/v1/project/entity_model',
    method: 'get'
  },
  // 上传模型-保存
  saveModel: {
    url: '/api/v1/project/entity_model',
    method: 'post'
  },
  // 上传模型-修改
  updateModel: {
    url: '/api/v1/project/entity_model',
    method: 'put'
  },
  // 删除模型
  deleteModel: {
    url: '/api/v1/project/entity_model',
    method: 'delete'
  },
  // 获取模型状态
  getModelStat: {
    url: '/api/v1/project/entity_model_status',
    method: 'put'
  },

}

export default buildService(settings)
